#!/bin/bash

if [ ${1} == "start" ]; then
  tail -n +12 $0 > /tmp/mytest.sh
  rm -rf /tmp/stop
  sh /tmp/mytest.sh &
elif [ ${1} == "stop" ];then
  echo "touch /tmp/stop"
  touch  /tmp/stop
fi
exit
while [ ! -e "/tmp/stop" ]; do
  echo "111111111111"
  logger "aaaaaaaaaaaa"
  sleep 1
done

